package com.x.epspace.entity;

import java.io.Serializable;
import java.util.Set;

import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.mongodb.morphia.annotations.*;
import org.mongodb.morphia.utils.*;

/**
 * 注册用户
 * @author xiajiangge
 *
 */
@Entity("reguser")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_EMPTY)
public class RegUser extends BaseEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2400630873037795464L;
	
	/**
	 * 注册用户手机号
	 */
	@Indexed(value=IndexDirection.ASC, unique=true, dropDups=true)
	private String mobile;
		
	/**
	 * 注册用户密码
	 */
	private String pwd;
		
	/**
	 * 注册时间
	 */
	private Long regTime;
	
	/**
	 * 用户状态    1：有效
	 */
	private String status = "1";
	
	private String wxuserid;
	
	@Reference(lazy=true)
	private Set<BindEnt> bindEnts;

	
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public Long getRegTime() {
		return regTime;
	}

	public void setRegTime(Long regTime) {
		this.regTime = regTime;
	}

	public Set<BindEnt> getBindEnts() {
		return bindEnts;
	}

	public void setBindEnts(Set<BindEnt> bindEnts) {
		this.bindEnts = bindEnts;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getWxuserid() {
		return wxuserid;
	}

	public void setWxuserid(String wxuserid) {
		this.wxuserid = wxuserid;
	}

}
